package com.iie.bigVideo.mapper;

import com.iie.bigVideo.entity.Video;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iie.bigVideo.entity.dto.VideoDto;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author XXX
 * @since 2023-11-24
 */
public interface VideoMapper extends BaseMapper<Video> {

    VideoDto queryByVideoId(@Param("videoId")int videoId);

    Integer addVideoObject(Video video);

    List<VideoDto> queryVideoList(@Param("current") int current, @Param("size") int size, @Param("hashMap") HashMap<String, String> hashMap);

    Integer countVideo(@Param("hashMap") HashMap<String, String> hashMap);

    Boolean updateVideo(Video video);

    Integer deleteVideo(@Param("videoId") int videoId);


    Video queryVideoObjectByVideoId(@Param("videoId")String videoId);


    List<Video> queryVideoObjectByVideoIdList(@Param("videoIds") List<String> videoIds);


}
